<html>
    
    <head>
        <title></title>
        <script src="js/jquery-1.7.2.min.js"></script>
    </head>
    
    <body>
    
        <script>
            
            INTERVAL = 5000;
            
            function doit(from, to) {
                $.ajax({
                    url: 'update_char_num.php',
                    type: 'get',
                    data: { from: from, to: to },
                    success: function(d) { document.write(from+"->"+to + " " + d); doit(INTERVAL, to+INTERVAL) }
                });
            }
            doit(INTERVAL, 80000 + INTERVAL);
        
        </script>
        
    </body>
    
</html>